<?php if($this->identity):  ?>
    <p>Привет, <?echo  $this->identity->username; ?></p>
    <p>Твоя роль, <?echo  $this->identity->role; ?></p>
<?php else: ?>
	<h3><?php echo $this->login;?></h3>
        <p id="warning"><?php echo $this->error;?></p>
            <?php echo $this->form;?>
<?php endif; ?>
